package com.lk.netty.handler;

import com.lk.netty.message.UserMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class TestHandler extends SimpleChannelInboundHandler<UserMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, UserMessage msg) {
        System.out.println("Received MyObject: " + msg.getUsername());
    }
}